﻿<phone:PhoneApplicationPage 
    x:Class="ImmunityBuster_wp7_2.GamePage"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Landscape" Orientation="Landscape"
    mc:Ignorable="d" d:DesignHeight="480" d:DesignWidth="800"
    shell:SystemTray.IsVisible="False" xmlns:my="clr-namespace:Microsoft.Advertising.Mobile.UI;assembly=Microsoft.Advertising.Mobile.UI" Background="Transparent">
    
    <!--No XAML content is required as the page is rendered entirely with the XNA Framework-->
    <Grid Name="_mainGrid" Loaded="_mainGrid_Loaded" VerticalAlignment="Top" HorizontalAlignment="Stretch" Background="Transparent">
    <StackPanel Opacity="1" Visibility="Collapsed" x:Name="sp1">
        <Grid Background="Transparent">
            <StackPanel Background="Transparent">
                <StackPanel Background="Transparent" VerticalAlignment="Top" HorizontalAlignment="Stretch" Orientation="Horizontal" Visibility="Visible">
                    <StackPanel  Background="Transparent" Width="200">
                        <TextBlock Text="Score:" FontSize="27" TextAlignment="Center"/>
                        <TextBlock x:Name="score" FontSize="27" TextAlignment="Center" />
                    </StackPanel>
                    <my:AdControl  Background="Transparent" Width="400" Height="80" AdUnitId="10037680" ApplicationId="d40ae2fc-b0ae-4c8d-842f-c7ffebdbc13c" Name="adControl1" />
                    <StackPanel Width="200"  Background="Transparent">
                        <TextBlock Text="Elapsed Time:" FontSize="27" TextAlignment="Center"/>
                        <TextBlock x:Name="time" FontSize="27" TextAlignment="Center" />
                    </StackPanel>
                </StackPanel>
                <Grid   Background="Transparent" x:Name="PauseMenu" Visibility="Collapsed" HorizontalAlignment="Center" VerticalAlignment="Bottom">
                    <StackPanel  Background="Transparent" ScrollViewer.ManipulationMode="Control" ScrollViewer.VerticalScrollBarVisibility="Visible">
                        <Button Background="Transparent" x:Name="Resume" Content="Resume" Click="Resume_Click" />
                        <Button  Background="Transparent" x:Name="Calibrate" Content="Calibrate Accelerometer" Click="Calibrate_Click" />
                        <Button Background="Transparent" x:Name="lb" Content="LeaderBoard" Click="lb_Click" />
                        <Button Background="Transparent" x:Name="quit" Content="Quit Game" Click="quit_Click" />
                        <Button Background="Transparent" Content="Exit Game" Click="Button_Click_1" />
                    </StackPanel>
            </Grid>
                <Grid Name="caliGrid" Background="Transparent" Visibility="Collapsed">
                <TextBlock Text="Set the position of your phone now! &#13;   Press back to go to pause menu" VerticalAlignment="Center" HorizontalAlignment="Center" FontSize="40" />
            </Grid>
                <Grid Name="lostGame" Background="Transparent" Height="400" Visibility="Collapsed">
                    <TextBlock TextAlignment="Center" Text="Oops! You Lost! :(&#13;Press back to goto main menu" FontSize=" 50" HorizontalAlignment="Center" VerticalAlignment="Center"></TextBlock>
                </Grid>
            </StackPanel>
        </Grid>
        </StackPanel>
        <Grid Name="LoadingGrid" Background="Black" Height="480">
            <TextBlock Text="Loading.." Margin="352,159,352,214" />
            <ProgressBar Maximum="100" Value="30" x:Name="progressBar" Width="200" />
        </Grid>
    </Grid>
    
</phone:PhoneApplicationPage>
